package taller2.view.windows.supervisor;

import taller2.interfaces.Graph;
import taller2.model.factorys.GraphFactory;
import taller2.utils.Constants;
import taller2.utils.Point;
import taller2.view.draws.GraphDrawer;
import taller2.view.menus.supervisor.FordFulkersonSupervisorMenu;
import taller2.view.menus.supervisor.GraphSupervisorMenu;

public class FordFulkersonSupervisorWindow extends SupervisorWindow{
	public FordFulkersonSupervisorWindow(Graph mainGraph, Graph solution) {
		super(mainGraph);
		
		Graph reference = GraphFactory.directedGgraphInstance();
		
		reference.add(new Point(-30, 50), "             Set the Maximum flow for the network:");

		GraphDrawer referenceDrawer = new GraphDrawer(reference, Constants.selectedColor, Constants.unSelectedColor);
		referenceDrawer.resize(50, 4, Constants.SampleTextSize);
		
		area.addDrawable(referenceDrawer);

		selector = new FordFulkersonSupervisorMenu(this.area,this.evaluationGraph,solution, this);
		this.window.addComponent(selector, 1, 0, new Point(0, 1));
		this.window.redraw();
	}

	protected GraphSupervisorMenu createGraphMenu(){
		return null;
	}
	
}
